import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
//引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
//引入axios
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.use(VueAxios,axios)
Vue.use(ElementUI);
Vue.config.productionTip = false
//引入初始化样式
import '@/assets/styles/base.css'
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
// //路由守卫
// router.beforeEach((to,from,next)=>{
//   if(to.meta.requireAuth){
//   if(store.loginStatus){
//     next()
//   }
//   else{
//     this.$message({
//       message: '请先登录',
//       type: 'warning'
//     });
//     next('/login')
//   }}
// })
